package com.gm.wholesale.module.user.bean;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;
public class UserBean implements Serializable {

    @SerializedName("unionId")
    private String unionId;
    @SerializedName("name")
    private String name;
    @SerializedName("phone")
    private String phone;
    @SerializedName("token")
    private String token;
    @SerializedName("expiresTime")
    private long expiresTime;
    @SerializedName("directLogin")
    private Boolean directLogin;
    @SerializedName("tenants")
    private List<TenantsDTO> tenants;

    public static class TenantsDTO {
        @SerializedName("tenantId")
        private long tenantId;
        @SerializedName("groupId")
        private long groupId;
        @SerializedName("groupName")
        private String groupName;

        public long getTenantId() {
            return tenantId;
        }

        public void setTenantId(long tenantId) {
            this.tenantId = tenantId;
        }

        public long getGroupId() {
            return groupId;
        }

        public void setGroupId(long groupId) {
            this.groupId = groupId;
        }

        public String getGroupName() {
            return groupName;
        }

        public void setGroupName(String groupName) {
            this.groupName = groupName;
        }
    }

    public String getUnionId() {
        return unionId;
    }

    public void setUnionId(String unionId) {
        this.unionId = unionId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public long getExpiresTime() {
        return expiresTime;
    }

    public void setExpiresTime(long expiresTime) {
        this.expiresTime = expiresTime;
    }

    public Boolean getDirectLogin() {
        return directLogin;
    }

    public void setDirectLogin(Boolean directLogin) {
        this.directLogin = directLogin;
    }

    public List<TenantsDTO> getTenants() {
        return tenants;
    }

    public void setTenants(List<TenantsDTO> tenants) {
        this.tenants = tenants;
    }
}
